home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
mac
/
LOGIC Apple II 5.25" Library - ProDOS
/
PRO009.dsk
/
STARTUP.bas
< prev
Wrap
BASIC Source File
|
2012-02-16
|
3KB
|
75 lines
1 CALL PEEK(175) +256 * PEEK(176) -46
2 TEXT
3 PU = 1
400 DIM L$(200): DIM T$(200)
410 HOME : PRINT CHR$(4);"PREFIX/"
420 PRINT CHR$(4);"PR#3"
460 X = 1
465 FOR Q = 1 TO 65:L$(Q) = " ": NEXT Q: FOR Q = 1 TO 65:T$(Q) = " ": NEXT Q
470 PRINT CHR$(4);"PREFIX": INPUT DISK$
500 PRINT CHR$(4);"OPEN ";DISK$;",TDIR"
510 PRINT CHR$(4);"READ ";DISK$
520 INPUT S$:X = X +1: IF X >4 THEN 530
525 W$(X) = S$: GOTO 520
530 IF S$ < >"" THEN L$(X -4) = S$: GOTO 520
540 PRINT CHR$(4);"CLOSE ";DISK$
565 CNT = X -5
566 FOR X = 1 TO CNT:T$(X) = MID$ (L$(X),2,21): NEXT X
570 F$ = DISK$:P$ = "Use the Arrow Keys to Select"
575 E$ = "Options":MA$ = DISK$
577 GOSUB 1100
578 PU = PU +1
580 & "MENU",T$(1),CNT,F$,P$,SE
590 IF SE = 0 THEN 1000
600 PG$ = MID$ (T$(SE),1,16)
610 TY$ = MID$ (T$(SE),17,3)
620 IF TY$ = "SYS" THEN PRINT CHR$(4);"-";PG$: END
630 IF TY$ = "BIN" THEN PRINT CHR$(4);"-";PG$: END
640 IF TY$ = "BAS" THEN PRINT CHR$(4);"-";PG$: END
650 IF TY$ = "TXT" THEN PRINT CHR$(4);"-";PG$: END
660 IF TY$ < >"DIR" THEN 690
670 PRINT CHR$(4);"PREFIX";PG$
680 GOSUB 1200: GOTO 460
690 HOME : PRINT "Unable to Process a ";M$;" Type File": FOR P = 1 TO 500: NEXT P: HOME : GOTO 460
1000 & "WINDOW",10,20,20,60: PRINT : HOME : PRINT
1001 PRINT " _____________________________________ "
1002 PRINT "| Options |"
1003 PRINT "| CONTROL-B Change Disk Drive |"
1004 PRINT "| CONTROL-O Return to Original Volume |"
1005 PRINT "| CONTROL-Q Quit Program-Go to Basic |"
1006 PRINT "| CONTROL-R Return to Last Menu |"
1007 PRINT "| |"
1008 PRINT "|_____________________________________|"
1009 PRINT : PRINT " ";: GET OP$
1019 HOME
1020 IF ASC(OP$) < >02 THEN 1030
1021 INPUT "Slot# ";SL$
1022 SL = VAL(SL$): IF SL <1 OR SL >8 THEN 1021
1023 INPUT "Drive# ";DR$
1024 DR = VAL(DR$): IF DR <1 OR DR >4 THEN 1023
1025 PRINT CHR$(4);"PREFIX/,S";SL;",D";DR
1026 PU = 1: POKE 34,0
1027 TEXT : PRINT : HOME : GOTO 460
1030 IF ASC(OP$) < >15 THEN 1040
1031 PU = 1: POKE 34,0
1032 PRINT CHR$(4);"PREFIX/": TEXT : PRINT : HOME : GOTO 410
1040 IF ASC(OP$) < >17 THEN 1050
1041 TEXT : HOME : NEW : END
1050 IF ASC(OP$) < >18 THEN 1060
1051 IF MID$ (W$(2),1,1) = "/" THEN 1059
1053 WP$ = (W$(2) +"/")
1054 W = LEN(WP$):LK = LEN(DISK$)
1055 DISK$ = MID$ (DISK$,1,(LK -W))
1056 PRINT CHR$(4);"PREFIX";DISK$: PRINT ;
1057 PU = PU -2: POKE 32,0: POKE 33,80
1058 GOSUB 1300: GOTO 460
1059 TEXT : GOTO 460
1060 HOME : GOTO 1000
1100 VTAB 1: HTAB 1: & "CLEAR" TO EOL: PRINT T$;: HTAB 1: PRINT CNT;" Files in Directory";: HTAB 40 -( LEN(MA$)/2): PRINT MA$;: HTAB 79 - LEN("Escape: " +E$): PRINT "Escape: ";E$
1110 PRINT "______________________________________________________________________________";: GOSUB 1400: RETURN
1200 POKE 34,PU *2: RETURN
1300 POKE 34,PU *2: RETURN
1400 IF ( PEEK(34)) >1 THEN RETURN
1401 POKE 34, PEEK(34) +2: RETURN
1500 IF ( PEEK(34)) >1 THEN RETURN
1501 POKE 34, PEEK(34) -2: RETURN